﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;

using System.ComponentModel.DataAnnotations.Schema;

using SMG.Domain.Model.Migration;



namespace Infrastructure.Repository.EntityFramework.Migration
{
    public class SecondTaskDetailConfiguration : EntityTypeConfiguration<SecondMoveTaskDetail>
    {

        public SecondTaskDetailConfiguration()
        {
            ToTable("t_move2_task_line");
            HasKey<long>(b => b.ID);
            Property(b => b.ID).HasColumnName("id")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();
            Property(p => p.MainTaskID).HasColumnName("task_id");
            Property(p => p.PlayID).HasColumnName("play_id");
            Property(p => p.ChannelId).HasColumnName("ChannelId");
            Property(p => p.ListId).HasColumnName("ListId");
            Property(p => p.ItemId).HasColumnName("ItemId");
            Property(p => p.FileName).HasColumnName("file_name");
            Property(p => p.FileType).HasColumnName("file_type");
            Property(p => p.FileSize).HasColumnName("file_size");
            Property(p => p.IsHD).HasColumnName("IsHD");
            Property(p => p.SourcePath).HasColumnName("from_path");
            Property(p => p.SourceMD5).HasColumnName("from_md5");
            Property(p => p.TargetPath).HasColumnName("to_path");
            Property(p => p.CreateTime).HasColumnName("CreateTime");
            Property(p => p.UpdateTime).HasColumnName("UpdateTime");
        }

    }
}
